package com.cdu.ai_intelligent_teaching_and_training_system.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
public class Resource {
    private Long resourceId;
    
    private Long courseId; // 关联Course表的外键
    
    @NotBlank(message = "资源标题不能为空")
    private String title;
    
    @NotBlank(message = "资源类型不能为空")
    private String type; // video, document, image, etc.

    private String description;

    @NotBlank(message = "资源链接不能为空")
    private String url;
    
    private String version;
    
    private LocalDateTime uploadedTime;
} 